﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddRegion.ascx.vb" Inherits="WebForm_ManageRegion_AddRegion" %>
<asp:FormView ID="fv" runat="server" DefaultMode="Insert" >
    <ItemTemplate>
        <table>
            <tr>
                <td align="right">
                    <asp:Label ID="lblRegionID" runat="server" meta:resourcekey="lblRegionID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtRegionID" runat="server" Text='<%# Bind("RegionID") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvRegionID" runat="server" Display="None" ControlToValidate="txtRegionID" meta:resourcekey="rfvRegionID" ValidationGroup="vInsertRegion"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblRegionName" runat="server" meta:resourcekey="lblRegionName"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtRegionName" runat="server" Text='<%# Bind("RegionName") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvRegionName" runat="server" Display="None" ControlToValidate="txtRegionName" meta:resourcekey="rfvRegionName" ValidationGroup="vInsertRegion"></asp:RequiredFieldValidator>
                </td>
            </tr>

            <tr>
                <td align="right">
                    <asp:Label ID="lblParent" runat="server" meta:resourcekey="lblParent"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtParent" runat="server" Text='<%# Bind("Parent") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvParent" runat="server" Display="None" ControlToValidate="txtParent" meta:resourcekey="rfvParent" ValidationGroup="vInsertRegion"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                </td>
                <td align="left">

                    <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" CommandName="btnSave" ValidationGroup="vInsertRegion" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnSave" meta:resourcekey="cbSave"></ajaxToolkit:ConfirmButtonExtender>
                </td>
            </tr>            
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="false" ValidationGroup="vInsertRegion" />
    </ItemTemplate>
</asp:FormView>
